using QFramework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PoolB : BasicPool<Transform>, IController
{
    protected void Awake()
    {
        Initialize();
    }

    protected override Transform OnCreatePoolItem()
    {
        return prefab;
    }

    protected override void OnGetPoolItem(Transform obj)
    {
        obj.gameObject.SetActive(true);
    }

    protected override void OnReleasePoolItem(Transform obj)
    {
        obj.gameObject.SetActive(false);
    }

    protected override void OnDestroyPoolItem(Transform obj)
    {
        Destroy(obj.gameObject);
    }

    public IArchitecture GetArchitecture()
    {
        return DigitalTwin_GeLinMei_2.Interface;
    }
}
